<template>
    <el-config-provider :locale="zhCn">
     <RouterView></RouterView>
    </el-config-provider>

    <!-- <router-view></router-view> -->
</template>

<script setup>
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';

//1.引入element-plus 的中文文配置
import { elementLocales } from '@/i18n';
//2.设置当前的语言类型
const {locale} =useI18n
locale.value = localStorage.getItem('locale') ||'zh-cn'
</script>
 
<style lang="scss">
html,
body {
    height: 100%;
}

#app {
    height: 100%;
    overflow: hidden;
}

.flex-center {
    display: flex;
    align-items: flex;
    justify-self: center;
}
.cursor {
    cursor: pointer;
}
</style>